using System;
using NHibernate;
using NHibernate.Criterion;
using NHibernate.Type;

namespace TelerikMvcGridCustomBindingHelper.NHibernate.Aggregates
{
    [Serializable]
    internal class BetterAvgProjection : AvgProjection
    {
        public BetterAvgProjection(string propertyName) : base(propertyName) { }

        public override IType[] GetTypes(ICriteria criteria, ICriteriaQuery criteriaQuery)
        {
            return new IType[] { NHibernateUtil.Decimal };
        }
    }
}